package com.omar.labs.tamtamy;

import java.util.ArrayList;

public class UserTag {

	public String network;
	public String userID;
	public String userTagType;
	public ArrayList<String> tags;

	public UserTag() {	
		this.network = null;
		this.userID = null;
		this.userTagType = null;
		this.tags = null;
	}

	public UserTag(String network, String userID, String userTagType, ArrayList<String> tags) {
		this.network = network;
		this.userID = userID;
		this.userTagType = userTagType;
		this.tags = tags;
	}
	
	public String getNetwork() {
		return userID;
	}

	public void setNetwork(String network) {
		this.userID = network;
	}
	
	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public String getUserTagType() {
		return userTagType;
	}

	public void setUserTagType(String userTagType) {
		this.userTagType = userTagType;
	}

	public ArrayList<String> getTags() {
		return tags;
	}

	public void setTags(ArrayList<String> tags) {
		this.tags = tags;
	}

	public static ArrayList<String> getFilters(){
		return UserTagFilter.getFilters();
	}
	
	public void print(){
		System.out.println(" == USER TAG ==");
		System.out.println("network: " + this.network);
		System.out.println("userID: " + this.userID);
		System.out.println("userTagType: " + this.userTagType);
		System.out.println("tags: " + this.tags.size());
		for(int i=0; i<this.tags.size(); i++){
			System.out.println("tag: " + this.tags.get(i));
		}
	}
}

class UserTagFilter{
	final static protected String NONE = "null";
	final static protected String SELF = "self";
	final static protected String USER = "user";
	final static protected String CONTENT = "content";
	
	protected static ArrayList<String> getFilters(){
		ArrayList<String> filters = new ArrayList<String>();
		filters.add(NONE);
		filters.add(SELF);
		filters.add(USER);
		filters.add(CONTENT);
		return filters;
	}
}
